package com.kob.design.decorator;

/**
 * @Description: 装饰者类
 * @Author: fyt
 * @Date: 2024/4/16 17:25
 **/
public abstract class Garnish extends FastFood{
    // 声明快餐类的变量
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(float price, String desc, FastFood fastFood) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
